-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create notifications #37
Conversation
309369d
to
ec622d6
Compare
@skyflaren please do the frontend for this. |
87bc829
to
13290a8
Compare
{% if notif != notifications[0] and notif.notification.linked_item.__str__() != notifications[0].notification.linked_item.__str__() %} | ||
<hr> | ||
{% endif %} | ||
<a class="notification-link font-alt font-bold" href="{{ notif.get_link_url() }}">{{ notif.notification.linked_item.__str__() }}</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need the __str__()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh wait yeah you're right
Co-authored-by: Steven Guikal <[email protected]>
Co-authored-by: Steven Guikal <[email protected]>
…n.html used to insert hr's
…into notification
{% endif %} | ||
<a class="notification-link font-alt font-bold" href="{{ notif.get_link_url() }}">{{ notif.notification.linked_item.__str__() }}</a> | ||
<span class="font-light">{{ notif.message }}</span><br> | ||
{% endfor %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not high priority but could add a message for when there are no notifications.
Notifications do not seem to be sorted (and it seems as if you cannot sort by property [as opposed to field]) ¯_(ツ)_/¯ |
You can just sort by |
@@ -122,6 +122,13 @@ footer { | |||
font-size: 1.5rem; | |||
} | |||
|
|||
hr{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hr{ | |
hr { |
@@ -212,6 +219,14 @@ footer { | |||
font-weight: 300; | |||
} | |||
|
|||
.notification-link{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.notification-link{ | |
.notification-link { |
color: var(--cirrus-primary); | ||
} | ||
|
||
.notification-link:hover{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.notification-link:hover{ | |
.notification-link:hover { |
The UI for notifications is still necessary.
Fixes #12
Fixes #13